package user.model;

import java.sql.Date;

public class Book {
	private int bookId;//图书id
	private String bookName;//图书名
	private String author;//图书作者
	private String type;//图书类别
	private float price;//图书价钱
	private int lend;//图书是否被借, 不在馆为0, 在馆为1
	private Date btime;//借书日期
	private Date stime;//应还日期
	private Date rtime;//归还日期
	
	
	public Book() {
		super();
	}
	public Book(String bookName, String author, Date btime) {
		this.bookName = bookName;
		this.author =author;
		this.btime = btime;
	}
	
	public Book(String bookName, String author, String type, float price) {
		super();
		this.bookName = bookName;
		this.author = author;
		this.type = type;
		this.price = price;
	}
	public Book(int id, String name, String author) {
		this.bookId = id;
		this.bookName = name;
		this.author = author;
	}
	
	public Book(int bookId, String bookName, String author, String type, float price, int lend) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
		this.type = type;
		this.price = price;
		this.lend = lend;
	}
	
	
	public Book(String bookName, String author, String type, float price, int lend) {
		super();
		this.bookName = bookName;
		this.author = author;
		this.type = type;
		this.price = price;
		this.lend = lend;
	}
	
	public Book(int bookid, String bookName, String author, String type,int lend) {
		this.bookId = bookid;
		this.bookName = bookName;
		this.author = author;
		this.type = type;
		this.lend = lend;
	}
	
	public Book(int bookid, String bookName, String author, String type, float price) {
		this.bookId = bookid;
		this.bookName = bookName;
		this.author = author;
		this.type = type;
		this.price = price;
	}
	public Book(String bookName, String author, Date btime, Date rtime) {
		this.bookName = bookName;
		this.author = author;
		this.btime = btime;
		this.rtime = rtime;
	}
	
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public int getLend() {
		return lend;
	}
	public void setLend(int lend) {
		this.lend = lend;
	}
	
	public Date getBtime() {
		return btime;
	}
	public void setBtime(Date btime) {
		this.btime = btime;
	}
	
	public Date getStime() {
		return stime;
	}
	public void setStime(Date stime) {
		this.stime = stime;
	}
	public Date getRtime() {
		return rtime;
	}
	public void setRtime(Date rtime) {
		this.rtime = rtime;
	}
	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", bookName=" + bookName + ", author=" + author + ", type=" + type
				+ ", price=" + price + ", lend=" + lend + ", btime=" + btime + ", stime=" + stime + ", rtime=" + rtime
				+ "]";
	}
	
	
	
	
}
